//
//  DogBookShell.m
//  dogBook
//
//  Created by 黄辉 on 16/12/12.
//  Copyright © 2016年 黄辉. All rights reserved.
//

#import "DogBookShell.h"

@implementation DogBookShell

@synthesize imageView;
@synthesize label;
//
//- (void)awakeFromNib {
//    [super awakeFromNib];
//    // Initialization code
//}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    CGRect r = [UIScreen mainScreen].bounds;
    NSLog(@"该屏幕大小＝%@",NSStringFromCGRect(r));
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"BookShelfCell.png"]];
        
        imageView.frame = CGRectMake(0, 0, r.size.width, r.size.height/3-21);
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, r.size.width, r.size.height/3-21)];
        label.backgroundColor = [UIColor clearColor];
        [label addSubview:imageView];
        [self addSubview:label];
        
        
            }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
